#include <stdio.h>
#define ONE   1  //0000 0000 0000 0001
#define TWO   2  //0000 0000 0000 0010
#define THREE 4  //0000 0000 0000 0100

void func(int f)
{
    if(f&ONE)
        printf("ONE");
    if(f&TWO)
        printf("TWO");
    if(f&THREE)
        printf("THREE");
    printf("\n");
}


int main()
{
    func(ONE);
    func(ONE|TWO);
    func(ONE|TWO|THREE);
}

